/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zombieville.engine;

import java.awt.Point;
import zombieville.GUI.ItemGUI;

/**
 *
 * @author -Gui-
 */
public class Item {

    private Point posDesenho;
    private Cenario cenarioPai;
    private ItemGUI itemGui;

    public Item(int x, int y, Cenario cenarioPai) {

        posDesenho = new Point();
        setPosDesenho(x, y);

        this.cenarioPai = cenarioPai;
        
        criaItemGui();

    }

    public void criaItemGui() {

        setItemGui(new ItemGUI(this));

    }

    public void setPosDesenho(int x, int y) {

        posDesenho.setLocation(x, y);
    }

    public Point getPosDesenho() {

        return posDesenho;
    }

    /**
     * @return the cenarioPai
     */
    public Cenario getCenarioPai() {
        return cenarioPai;
    }

    /**
     * @return the itemGui
     */
    public ItemGUI getItemGui() {
        return itemGui;
    }

    /**
     * @param itemGui the itemGui to set
     */
    public void setItemGui(ItemGUI itemGui) {
        this.itemGui = itemGui;
    }
}
